#include "Vector.h"
#include <string.h>
#include <math.h>

/* column-major 4x4 matrices, as in opengl */
#define A(row,col) a[(col<<2)+row]
#define B(row,col) b[(col<<2)+row]
#define M(row,col) m[(col<<2)+row]


void mat_identity(mat4 m)
{
	M(0, 0) = 1; M(0, 1) = 0; M(0, 2) = 0; M(0, 3) = 0;
	M(1, 0) = 0; M(1, 1) = 1; M(1, 2) = 0; M(1, 3) = 0;
	M(2, 0) = 0; M(2, 1) = 0; M(2, 2) = 1; M(2, 3) = 0;
	M(3, 0) = 0; M(3, 1) = 0; M(3, 2) = 0; M(3, 3) = 1;
}

void mat_copy(mat4 p, const mat4 m)
{
	memcpy(p, m, sizeof(mat4));
}

void mat_translate(mat4 m, float x, float y, float z)
{
	m[12] =
	m[13] =
	m[14] =
	m[15] =
}